//
//  TouchView.m
//  03_UIResponder
//
//  Created by 徐昊 on 16/7/18.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView

// 继承于UIResponder
// Appdelegate UIView UIViewController
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    NSLog(@"%@", self);
    NSLog(@"%@", self.nextResponder);
    NSLog(@"%@", self.nextResponder.nextResponder);
    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"%@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"%@--------%s", [self class], __FUNCTION__);
}

- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@--------%s", [self class], __FUNCTION__);
}

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"%@--------%s", [self class], __FUNCTION__);
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
